home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
language
/
embedded
/
develop
/
libsrc11.arc
/
WRBLKSC9.C
< prev
next >
Wrap
C/C++ Source or Header
|
1989-04-27
|
1KB
|
41 lines
/* wrblksc9.c 4.2 */
/*F****************************************************************************
FUNCTION NAME: wrblksc9
ACTION: Writes count integers to the SCI serial hardware. The size
of the array is integer because 9 bits are output to the
SCI serial hardware.
PARAMETERS:
array: pointer to an array of integers. Each element is
16 bits long, though only the low 9 bits are used.
count: Number of 9 bit characters to output to the SCI
serial hardware.
RETURNS: (void)
******************************************************************************/
#include <hc11/directives.h>
SMALL
void wrblksc9(array, count)
int *array; /* pointer to data to be written */
int count; /* number of bytes to be written */
{
/****************************************************************/
/* Note that "while ((count--) > 0)" is equivalent to */
/* "while ((--count) >= 0)" but the pre-decrement version */
/* is more efficient than the post-decrement version. */
/****************************************************************/
while ((--count) >= 0)
wrbytsci(*(array++));
} /* end of wrblksc9 */